var server = require('./server');
var router = require('./router');
var handler = require('./handler');

var handle = {};
handle['/'] = handler.home;
handle['/home'] = handler.home;
handle['/hall'] = handler.hall;
handle['/game'] = handler.game;
handle['/drop'] = handler.drop;
handle['/login'] = handler.login;
handle['/joinRoom'] = handler.joinRoom;
handle['/checkWin'] = handler.checkWin;
handle['/showRooms'] = handler.showRooms;
handle['/checkRoom'] = handler.checkRoom;
handle['/checkDrop'] = handler.checkDrop;
handle['/createRoom'] = handler.createRoom;

server.startServer(router.route,handle);